﻿@using INNOVACALL.Framework.Common.Models.ViewModels.MetaModels
@model INNOVACALL.Framework.Common.Models.ViewModels.MetaModels.Languages_MetaModel
@if (Model.Languages.Count > 1)
{ 
    <table class="tblHeaderTbr tblHeaderTbrL">
        <tr>
            <td class="tdTbRL_L">
            </td>
            <td class="tdTbRL_M">
                <ul class="ulLanguageSelector">
                    @foreach (Language_MetaModel language in Model.Languages)
                    { 
                        <li>
                            @if (Model.SelectedLanguage.Language == language.Language)
                            {
                                <a href="/">
                                <img src="@language.Flag" class="imgLge imgLgeSelected" id="@language.SelectorId" value="@language.Language" alt="@language.Language" /></a>
                            }
                            else
                            { 
                                <a href="/@language.Language">
                                    <img src="@language.Flag" class="imgLge imgLgeUnselected" id="@language.SelectorId" value="@language.Language" alt="@language.Language" /></a>
                            }
                        </li>
                    }
                </ul>
            </td>
            <td class="tdTbRL_R">
            </td>
        </tr>
    </table>
}
@Html.HiddenFor(x => x.SelectedLanguage.Language, new { id = "hidLanguage" })
